package br.alltime.gui;

import java.awt.Font;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JRootPane;
import javax.swing.JTextField;

/**
 *
 * @author rafael
 */
public class CadastroEmpresaGUI {

    private JFrame frame;
    private JLabel jlTitulo;
    /*
     * Campos da Tela
     */
    private JLabel jlCgc_cpf, jlRazao_social;
    private JTextField jtfCgc_cpf, jtfRazao_social;

    public JLabel getJlTitulo(){
        jlTitulo = new JLabel("Cadastro de Empresas");
        jlTitulo.setBounds(150, 26, 800, 30);
        jlTitulo.setFont(new Font("TAHOMA", Font.BOLD, 15));
        return jlTitulo;
    }

    public JLabel getJlRazao_social() {
        jlRazao_social = new JLabel("Razão Social");
        jlRazao_social.setBounds(20,60,100,12);
        return jlRazao_social;
    }

    public JTextField getJtfRazao_social() {
        jtfRazao_social = new JTextField();
        jtfRazao_social.setBounds(20,75,300,20);
        return jtfRazao_social;
    }


    public JLabel getJlCgc_cpf() {
        jlCgc_cpf = new JLabel("CNPJ");
        jlCgc_cpf.setBounds(20,100,100,12);
        return jlCgc_cpf;
    }

    public JTextField getJtfCgc_cpf() {
        jtfCgc_cpf = new JTextField();
        jtfCgc_cpf.setBounds(20,115,100,20);
        return jtfCgc_cpf;
    }

    public void montaJanela() {
        frame = new JFrame("Cadastro de Empresas - allTime System");
        frame.setSize(500, 400);
        frame.setLocationRelativeTo(null);
        frame.setAlwaysOnTop(true);
        frame.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.setLayout(null);
        frame.add(getJlTitulo());
        frame.add(getJlCgc_cpf());
        frame.add(getJtfCgc_cpf());
        frame.add(getJlRazao_social());
        frame.add(getJtfRazao_social());

        frame.setUndecorated(true);
        frame.setVisible(true);
    }

        public static void main(String args[]) {
        new CadastroEmpresaGUI().montaJanela();
    }

}
